<template>
  <view class="empty-cart">
    <view class="flex items-center">
      <image class="cart-icon" :src="ossImg('cart/cart.png')" />
      <view>
        你的购物车一件商品都没有<br />
        现在下单立享超值优惠
      </view>
    </view>
    <image class="go-button" :src="ossImg('cart/go.png')" @click.stop="goShopping" />
  </view>
</template>

<script setup>
import { ossImg } from "@/utils/utils"
const goShopping = () => {
  uni.switchTab({ url: '/pages/mall/mall' })
}
</script>

<style lang="less" scoped>
@import "@/static/css/theme.less";

.empty-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 260px;
  background: #F0F0F0;
  border-radius: 12px;
  color: @base-color;
  font-size: 14px;
  text-align: center;

  image {
    display: block;
  }

  .cart-icon {
    width: 50px;
    height: 45px;
    margin-right: 8px;
  }

  .go-button {
    width: 121px;
    height: 40px;
    margin-top: 16px;
  }
}
</style>
